package com.lqd.mall.security.utils;

import com.lqd.mall.interaction.system.vo.LoginUserVo;
import com.lqd.mall.security.auth.AuthLogic;

/**
 * @author 零起点
 * @create 2022-02-19 23:11
 */
public class AuthUtil {

    /**
     * 底层的 AuthLogic 对象
     */
    public static AuthLogic authLogic = new AuthLogic();

    public static LoginUserVo getLoginUser(String token) {
      return   authLogic.getLoginUser(token);
    }

    public static void verifyLoginUserExpire(LoginUserVo loginUser) {
        authLogic.verifyLoginUserExpire(loginUser);
    }
}
